package com.kongj18.mrio.controller;

import com.kongj18.mrio.domain.ProvinceInfo;
import com.kongj18.mrio.service.ProvinceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping(path = "province")
public class ProvinceInfoController {
    @Autowired
    private ProvinceInfoService service;

    @RequestMapping("getAll")
    @ResponseBody
    public List<ProvinceInfo> getAll(){
        return service.getAll();
    }
}
